﻿using UnityEngine;
using UnityEngine.Rendering;

[CreateAssetMenu(menuName = "Render/MyFirstPipeline")]
public class MyFirstPipelineAsset : RenderPipelineAsset
{
    [SerializeField] private bool allowHDR = true;

    [SerializeField] bool useDynamicBatching = true,
        useGPUInstancing = true,
        useSRPBatcher = true,
        useLightsPerObject = true;

    [SerializeField] private ShadowSettings shadow = default;

    [SerializeField] PostFXSettings postFXSettings = default;

    protected override RenderPipeline CreatePipeline()
    {
        return new MyFirstPipeline(allowHDR,useDynamicBatching, useGPUInstancing, useSRPBatcher, useLightsPerObject, shadow,
            postFXSettings);
    }
}